/*
 * @Date: 2022-02-13 14:09:26
 * @LastEditors: xiaole
 * @LastEditTime: 2022-02-13 20:37:24
 */

import { defineComponent, ref } from "vue";
import { DropdownMenu, DropdownItem } from 'vant';
export default defineComponent({
  
  setup() {

    const value1 = ref(0);
    const value2 = ref('a');
    
    const option1 = [
      { text: '全部商品', value: 0 },
      { text: '新款商品', value: 1 },
      { text: '活动商品', value: 2 },
    ];
    const option2 = [
      { text: '默认排序', value: 'a' },
      { text: '好评排序', value: 'b' },
      { text: '销量排序', value: 'c' },
    ];
    return () =>
      <DropdownMenu class="dropdown-style">
        <DropdownItem v-model={value1.value} disabled  options={option1} />
        <DropdownItem v-model={value2.value} disabled  options={option2} />
      </DropdownMenu>
  }
})


